<template>
  <el-card style="min-height: 100%;">
    <div slot="header">个人成绩查询</div>
    <el-table :data="data" border size="small">
      <el-table-column prop="course.name" label="课程名"></el-table-column>
      <el-table-column prop="grade" label="成绩"></el-table-column>
    </el-table>
  </el-card>
</template>

<script>
  export default {
    data() {
      return {
        data: []
      }
    },
    created() {
      this.$ajax.post('grade/peasonGradeList',{}).then(res=>{
        var result=res.data;
        console.log(result.data);
        this.data=result.data;
      })
    }
  }
</script>

<style>
</style>
